import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path:"/fourtable",
      name:"Fourtable",
     
      component:  () => import('@/components/table/Fourtable')
    },
    {
      path:"/thirdtable",
      name:"Thirdtable",
     
      component:  () => import('@/components/table/Thirdtable')
    },
    {
      path:"/secondtable",
      name:"Secondtable",
     
      component:  () => import('@/components/Secondtable')
    },
    {
      path:"/firsttable",
      name:"Firsttable",
     
      component:  () => import('@/components/Firsttable')
    },
    {
      path:"/setcard",
      name:"Setcard",
     
      component:  () => import('@/components/Setcard'),
    },
    {
      path:"/set",
      name:"Set",
     
      component:  () => import('@/components/Set'),
    },
    {
      path:"/echartsdataanalyst",
      name:"Echartsdataanalyst",
     
      component:  () => import('@/components/Echartsdataanalyst'),
    },
    {
      path:"/bzt",
      name:"Bzt",
     
      component:  () => import('@/components/Bzt'),
    },
    {
      path:"/",
      name:"Home",
      redirect:"/workbench",
      component:  () => import('@/views/Home'),
      children:[
        {
          
          path:"/workbench",
          name:"Workbench",
          meta:{title:"工作台"},
          component:  () => import('@/views/Workbench'),
        },
        {
          path:"/shoplist",
          name:"Shoplist",
          meta:{title:"商品管理"},
          component:  () => import('@/views/Shoplist'),
        },
        {
          path:"/order",
          name:"Order",
          meta:{title:"订单查看"},
          component:  () => import('@/views/Order'),
        },
        {
          path:"/database",
          name:"Database",
          meta:{title:"店铺数据"},
          component:  () => import('@/views/Database'),
        },
        {
          path:"/shopanalyst",
          name:"Shopanalyst",
          meta:{title:"商品数据"},
          component:  () => import('@/views/Shopanalyst'),
        },
        {
          path:"/dataanalyst",
          name:"Dataanalyst",
          meta:{title:"店铺数据"},
          component:  () => import('@/views/Dataanalyst'),
        },
        {
          path:"/message",
          name:"Message",
          meta:{title:"消息"},
          component:  () => import('@/views/Message'),
        },
        {
          path:"/system",
          name:"System",
          meta:{title:"系统设置"},
          component:  () => import('@/views/System'),
        },
        {
          path:"/snowmsg",
          name:"Snowmsg",
          meta:{title:"雪场信息"},
          component:  () => import('@/views/Snowmsg'),
        },
        {
          path:"/snowimage",
          name:"Snowimage",
          meta:{title:"雪场信息/雪场图片"},
          component:  () => import('@/views/Snowimage'),
        },
        {
          path:"/detailpage",
          name:"Detailpage",
          meta:{title:"商品管理/商品详情"},
          component:  () => import('@/views/Detailpage'),
        },
              
      ]
    }
  ]
})
